<?php

/**
 * clientes form.
 *
 * @package    gescell
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfPropelFormTemplate.php 10377 2008-07-21 07:10:32Z dwhittle $
 */
class clientesForm extends BaseclientesForm
{
  public function configure()
  {
    // $this->setWidgets(array());
      
      $this->widgetSchema['nombre']->setattribute('size', '50');
      $this->widgetSchema['nombre']->setattribute('class' ,'text ui-widget-content ui-corner-all');
      $this->widgetSchema['apellido']->setattribute('class' ,'text ui-widget-content ui-corner-all');
      $this->widgetSchema['apellido']->setattribute('size', '50');
      //$this->widgetSchema['clientestipo_id']->setattribute('class', 'text ui-widget-content ui-corner-all');
      
      $this->widgetSchema['direccion']->setattribute('size', '50');
      $this->widgetSchema['direccion']->setattribute('class' ,'text ui-widget-content ui-corner-all');
      $this->widgetSchema['ruc']->setattribute('class' ,'text ui-widget-content ui-corner-all');
      $this->widgetSchema['ruc']->setattribute('size' ,'30');
      $this->widgetSchema['ciudad']->setattribute('class' ,'text ui-widget-content ui-corner-all');
      $this->widgetSchema['ciudad']->setattribute('size' ,'50');
      $this->widgetSchema['otrainfo']->setattribute('class' ,'text ui-widget-content ui-corner-all');
      $this->widgetSchema['otrainfo']->setattribute('size' ,'50');
      $this->widgetSchema['telefonoparticular']->setattribute('class' ,'text ui-widget-content ui-corner-all');
      $this->widgetSchema['telefonoparticular']->setattribute('size' ,'50');
      $this->widgetSchema['telefonooficina']->setattribute('class' ,'text ui-widget-content ui-corner-all');
      $this->widgetSchema['telefonooficina']->setattribute('size' ,'50');
      $this->widgetSchema['correo1']->setattribute('class' ,'text ui-widget-content ui-corner-all');
      $this->widgetSchema['correo1']->setattribute('size' ,'50');
      $this->widgetSchema['correo2']->setattribute('class' ,'text ui-widget-content ui-corner-all');
      $this->widgetSchema['correo2']->setattribute('size' ,'50');
      
      $this->setValidators(array(
          'id'                 => new sfValidatorPropelChoice(array('model' => 'clientes', 'column' => 'id', 'required' => false)),
          'clientestipo_id'    => new sfValidatorPropelChoice(array('model' => 'clientestipo', 'column' => 'id', 'required' => false)),
          'nombre'             => new sfValidatorString(array('max_length' => 25, 'required' => false)),
          'apellido'           => new sfValidatorString(array('max_length' => 25, 'required' => false)),
          'ruc'                => new sfValidatorString(array('max_length' => 20, 'required' => false)),
          'direccion'          => new sfValidatorString(array('max_length' => 30, 'required' => false)),
          'ciudad'             => new sfValidatorString(array('max_length' => 30, 'required' => false)),
          'otrainfo'           => new sfValidatorString(array('max_length' => 100, 'required' => false)),
          'telefonoparticular' => new sfValidatorString(array('max_length' => 50, 'required' => false)),
          'telefonooficina'    => new sfValidatorString(array('max_length' => 50, 'required' => false)),
          'correo1'            => new sfValidatorEmail(array('required' => false)),
          'correo2'            => new sfValidatorEmail(array('required' => false)),
          'created_at'         => new sfValidatorDateTime(array('required' => false)),
          'updated_at'         => new sfValidatorDateTime(array('required' => false)),
      ));
  }
}
